#1.算术运算
# 数值类型   +-*/  **  //
# print('',9*2)
# print('',9/2)
# print('',9**2)

# 2.比较运算
# ==  !=  >  <  >=  <=

# print(10==10)
# print(10>9)
# print('189'>'28')
# print('阿'>'张')

# 赋值运算
# = += -= *= /=  **=   //=
# a=0
# a+=1  # a=a+1
# a-=2

# 4 逻辑运算
# && || !  and  or not

# print(True and True)
# print(True and False)
#
# # 5.位运算
# #  >>  << ^ | &
# a=0b10001111
# b=0b11110000
# print(a<<2) # 00111100
# print(a^b)  #00000000
# print(~a)
# print(bin(~a))
a=255
b=~a
print(b)
print(bin(b))

# 6.成员
#  in not in
# print(1  not in [0,2,3])

# 7.身份运算
# is   not is

c={'id':1}
a= [c,2,3]
b=[c,2,3]
print(a[0] is b[0])




